package com.yao.club.reposittory;

import com.yao.club.entity.dto.UserFollowRecord;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UserFollowRecordRepository extends JpaRepository<UserFollowRecord, String> {
    @Query(nativeQuery=true,value="select * from user_follow where follower_id = :follower_id and followed_id = :followed_id")
    UserFollowRecord selectById(@Param("follower_id") String follower_id, @Param("followed_id") String followed_id);



}
